#include "libraries.h"

using namespace std;

//Primitive functions
void rectangle(Sint16 coordX, Sint16 coordY, Uint16 width, Uint16 height, SDL_Surface *screen)
{
    //Assign variables
    //SDL_Surface *rectSurface = NULL;
    SDL_Surface *pixel    = NULL;
    SDL_Rect position;
    position.x = coordX;
    position.y = coordY;
    position.w = width;
    position.h = height;
    
    pixel = SDL_LoadBMP( "pixel.bmp" );
    for(int i=int(coordX); i < int(width+coordX); i++)
    {
        position.x = Sint16(i);
        for(int j=int(coordY); j < int(height+coordY); j++)
        {
            position.y = Sint16(j);
            SDL_BlitSurface( pixel, NULL, screen, &position);
        }
    }
    return;
}
